#ifndef  _TCP_CLINET_THREAD_H_
#define  _TCP_CLINET_THREAD_H_

#include "../define/define.h"
#include "../util/bthread.h"
#include "../util/epoll_single.h"
#include "tcp_client.h"

class tc_sink;
class tc_man;

class tc_thread : public bthread
{
public:
	tc_thread(tc_sink* sink);	
	~tc_thread();

	bool add_socket(uint32 socket);
	bool del_socket(uint32 socket);

protected:

	void Execute();
	
private:
	
	tcp_client*   m_tcp;
	epoll_single* m_single;

	tc_sink*     m_sink;
	logfile*     m_log;
};
#endif
